
App({
  onLaunch() {
  },
  globalData: {
  },
  checkLogin() {
    let token = wx.getStorageSync('token') ? wx.getStorageSync('token') : ''
    if (token == '') {
      wx.showModal({
        title: '提示',
        content: '请登录',
        confirmColor: '#ff8c3e',
        showCancel: false,
        complete: (res) => {
          if (res.confirm) {
            wx.navigateTo({
              url: '/pages/login/login',
            })
          }
        }
      })
    }
  },
})
